﻿/***************************************************************************
*		功能：     车辆加油记录实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 车辆加油记录
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Fuel", EntityName = "Fuel")]
	public partial class Fuel :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return FuelId == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// FuelId
		/// </summary>
		[HColumn("FuelId", Remake = "FuelId", DataType = "numeric" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int FuelId { set; get; }
        

		/// <summary>
		/// 车辆ID
		/// </summary>
		[HColumn("DeviceId", Remake = "车辆ID", DataType = "int")]
		public int DeviceId { set; get; }
        

		/// <summary>
		/// 加油日期
		/// </summary>
		[HColumn("Time", Remake = "加油日期", DataType = "datetime")]
		public DateTime Time { set; get; }
        

		/// <summary>
		/// 加油数量(升)
		/// </summary>
		[HColumn("Qty", Remake = "加油数量(升)", DataType = "decimal" , Length =14)]
		public decimal Qty { set; get; }
        

		/// <summary>
		/// 加油金额
		/// </summary>
		[HColumn("Money", Remake = "加油金额", DataType = "decimal" , Length =14)]
		public decimal Money { set; get; }
        

		/// <summary>
		/// 加油人
		/// </summary>
		[HColumn("Employee", Remake = "加油人", DataType = "nvarchar" , Length =50)]
		public string Employee { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// FuelId
			 /// </summary>
			 public static Field FuelId = new Field("T_Fuel","FuelId");
	    	 

			 /// <summary>
			 /// 车辆ID
			 /// </summary>
			 public static Field DeviceId = new Field("T_Fuel","DeviceId");
	    	 

			 /// <summary>
			 /// 加油日期
			 /// </summary>
			 public static Field Time = new Field("T_Fuel","Time");
	    	 

			 /// <summary>
			 /// 加油数量(升)
			 /// </summary>
			 public static Field Qty = new Field("T_Fuel","Qty");
	    	 

			 /// <summary>
			 /// 加油金额
			 /// </summary>
			 public static Field Money = new Field("T_Fuel","Money");
	    	 

			 /// <summary>
			 /// 加油人
			 /// </summary>
			 public static Field Employee = new Field("T_Fuel","Employee");
	    	 

        }
        #endregion
		  
	 
	}
    
}